package com.ruoyi.onlinevideo.mapper;/**
 * @InterfaceName: MeetingMapper
 * @Description:
 * @Author: YourName
 * @Date: 2023-04-18
 */

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.onlinevideo.domain.Meeting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 *@InterfaceName: MeetingMapper
 *@Description:
 *@Author: lilirui
 *@Date: 2023-04-18
 */
@Mapper
public interface MeetingMapper extends BaseMapper<Meeting> {

    @Select("SELECT\n" +
            "\tmeeting.*,\n" +
            "\tsys_user.nick_name as nickName \n" +
            "FROM\n" +
            "\tmeeting\n" +
            "\tLEFT JOIN sys_user ON meeting.user_id = sys_user.user_id " +
            "${ ew.customSqlSegment}")
    public Page<Meeting> selectMeetingPage(Page page, @Param(Constants.WRAPPER) Wrapper<Meeting> queryWrapper);
}
